import React from 'react';
import { Route, Switch, withRouter } from 'react-router-dom';
import PageOne from './OnePage';
import OtherPage from './OtherPage';
import { Application } from '@/common/helpers/Application';

const School = Application.getComponent('school');
class Index extends React.Component {
  render() {
    return (
      <div>
          <Switch>
            <Route exact path={`${window.urlPrefix}/`} component={PageOne} />
            <Route exact path={`${window.urlPrefix}/other`} component={OtherPage} />
            <Route exact path={`${window.urlPrefix}/school`} component={School} />
          </Switch>
      </div>
    );
  }
}

export default withRouter(Index);